Skip to content

[15] fix: dark mode & todo details#34

Merged
maestriny merged 2 commits intomainfrom
fix/15/dark-mode-and-detail-state
Feb 21, 2026
Merged

[15] fix: dark mode & todo details#34
maestriny merged 2 commits intomainfrom
fix/15/dark-mode-and-detail-state

Conversation

@maestriny
Copy link
Owner

fix: prioritize device color scheme and reset detail state on navigation

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to fix dark mode handling and reset component state when navigating between todo items. However, the theme changes introduce critical bugs in the dark mode logic that break explicit user preference handling.

Changes:

  • Modified dark mode detection logic to prioritize device color scheme
  • Updated theme toggle behavior to switch between 'dark' and 'system' modes
  • Refactored TodoDetailScreen to reset state when navigating between different todos using React's key prop

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
providers/theme.tsx Modified dark mode detection and toggle logic with new prioritization approach
app/(app)/todo-detail.tsx Split component into wrapper and content to enable state reset via key prop when id changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@maestriny maestriny merged commit 0163a84 into main Feb 21, 2026
3 checks passed
@maestriny maestriny deleted the fix/15/dark-mode-and-detail-state branch February 21, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants